<?php
$config = array(
			'apointment' => array(
								array(
                                            'field' =>  'apointment_form[date]',
                                            'label' => lang('form_label_date'),
                                            'rules' => 'trim|required|min_length[10]|xss_clean'
                                         ),
								/*array(
                                            'field' =>  'apointment_form[hour]',
                                            'label' => lang('form_label_hour'),
                                            'rules' => 'trim|required|integer|xss_clean'
                                         ),
								array(
                                            'field' =>  'apointment_form[minute]',
                                            'label' => lang('form_label_minute'),
                                            'rules' => 'trim|required|integer|xss_clean'
                                         ),
								array(
                                            'field' =>  'apointment_form[timing]',
                                            'label' => lang('form_label_timing'),
                                            'rules' => 'trim|required|integer|xss_clean'
                                         ),*/
								array(
                                            'field' =>  'apointment_form[patient_id]',
                                            'label' => lang('menuitem_patient'),
                                            'rules' => 'trim|required|xss_clean'
                                         ),
								array(
                                            'field' =>  'apointment_form[user_id]',
                                            'label' => lang('general_soctor'),
                                            'rules' => 'trim|required|integer|xss_clean'
                                         ),
								
								array(
                                            'field' =>  'apointment_form[note]',
                                            'label' => lang('form_label_note'),
                                            'rules' => 'trim|xss_clean'
                                         )
								),
			'preview_setting_form'	=> array(
									array(
											'field' =>  'preview_form[name]',
                                            'label' => lang('menuitem_examination'),
                                            'rules' => 'trim|xss_clean|required'
										),
									array(
											'field' =>  'preview_form[description]',
                                            'label' => lang('form_label_description'),
                                            'rules' => 'trim|xss_clean|required'
										)
								),
			'login'		=> array(
									array(
											'field' =>  'username',
                                            'label' => lang('form_label_username'),
                                            'rules' => 'trim|xss_clean|required'
										),
									array(
											'field' =>  'password',
                                            'label' => lang('form_label_password'),
                                            'rules' => 'trim|xss_clean|required'
										)
								),
			
			'listprice' => array(
								array(
                                            'field' =>  'listprice_form[test_name]',
                                            'label' => lang('menuitem_checkup').' '.lang('form_label_name'),
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
                                         ),
                                    array(
                                            'field' =>  'listprice_form[price]',
                                            'label' => lang('menuitem_price'),
                                            'rules' => 'trim|required|min_length[1]|numeric|xss_clean'
                                         )
								),
           'staff_new_type' => array(
                                    array(
                                            'field' =>  'description',
                                            'label' => 'description',
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
                                         ),
                                    array(
                                            'field' => 'type_code',
                                            'label' => 'Type Code',
                                            'rules' => 'trim|min_length[2]|required|xss_clean'
                                         ),
										 array(
                                            'field' => 'info',
                                            'label' => 'info',
                                            'rules' => 'trim|min_length[5]|xss_clean'
                                         )
                                    ),
           'specialty' => array(
                                    array(
                                            'field' =>  'specialty',
                                            'label' => lang('menuitem_specialty'),
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
                                         )
                                    ),
			'patient' => array(
									array(
										  'field' =>  'patient_form[code]',
                                            'label' => lang('general_code'),
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
										  ),
									array(
										  'field' =>  'patient_form[first_name]',
                                            'label' => lang('general_1stname'),
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
									),
									array(
										  'field' =>  'patient_form[last_name]',
                                            'label' => lang('general_lastname'),
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
									)
								),
              'user_new' => array(
									array(
                                            'field' => 'user_form[username]',
                                            'label' => 'username',
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
                                         ),
									array(
                                            'field' =>  'user_form[email]',
                                            'label' => 'E-mail',
                                            'rules' => 'trim|required|valid_email|xss_clean'
                                         ),
                                    array(
                                            'field' => 'user_form[password]',
                                            'label' => 'Password',
                                            'rules' => 'required|min_length[3]|xss_clean'
                                         ),
                                    array(
                                            'field' => 'passconf',
                                            'label' => 'Password Confirmation',
                                            'rules' => 'required|min_length[3]|xss_clean'
                                         ),
                                   array(
                                            'field' => 'user_form[first_name]',
                                            'label' => 'First Name',
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
                                         ),
                                   array(
                                            'field' => 'user_form[last_name]',
                                            'label' => 'Last Name',
                                            'rules' => 'trim|required|min_length[3]|xss_clean'
                                         ),
                                   array(
                                            'field' => 'user_form[type_id]',
                                            'label' => 'Type',
                                            'rules' => 'required|trim|integer'
                                         ),
                                   array(
                                            'field' => 'user_form[specialty_id]',
                                            'label' => 'Specialty',
                                            'rules' => 'required|trim|integer'
                                         )
								 )
               );

